/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
#ifndef __LifePlaneAffectorFactory_H__
#define __LifePlaneAffectorFactory_H__

#include "OgreParticleFXPrerequisites.h"
#include "OgreParticleAffectorFactory.h"
#include "OgreLifePlaneAffector.h"

namespace Ogre {

    /** Factory class for LifePlaneAffector. */
    class _OgreParticleFXExport LifePlaneAffectorFactory : public ParticleAffectorFactory
    {
        /** See ParticleAffectorFactory */
        String getName() const { return "LifePlane"; }

        /** See ParticleAffectorFactory */
        ParticleAffector* createAffector(ParticleSystem* psys)
        {
            ParticleAffector* p = new LifePlaneAffector(psys);
            mAffectors.push_back(p);
            return p;
        }
    };


}

#endif

